<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>N3RD CH4T: chatWindow Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">N3RD CH4T
   &#160;<span id="projectnumber">Final Version</span>
   </div>
   <div id="projectbrief">CS340 Project</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">chatWindow Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="chatWindow" -->
<p>The <a class="el" href="classchat_window.html" title="The chatWindow helper methods.">chatWindow</a> helper methods.  
 <a href="classchat_window.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="chatwindow_8h_source.html">chatwindow.h</a>&gt;</code></p>

<p><a href="classchat_window-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a1ed506729bd803adf6771814dd2cca64">messageSent</a> (QString, QString, QString, QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal that sends the message.  <a href="#a1ed506729bd803adf6771814dd2cca64"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a103ce347a4bb6fab382f1cca06c39f1d"></a><!-- doxytag: member="chatWindow::chatWindow" ref="a103ce347a4bb6fab382f1cca06c39f1d" args="(QWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a103ce347a4bb6fab382f1cca06c39f1d">chatWindow</a> (QWidget *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor method for <a class="el" href="classchat_window.html" title="The chatWindow helper methods.">chatWindow</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75e3fbcc81b226118c125c999f04e644"></a><!-- doxytag: member="chatWindow::~chatWindow" ref="a75e3fbcc81b226118c125c999f04e644" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a75e3fbcc81b226118c125c999f04e644">~chatWindow</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Deconstructor for <a class="el" href="classchat_window.html" title="The chatWindow helper methods.">chatWindow</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a52a956b9b93fcd65d7addd2c66345983">setfromUser</a> (QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that sets the from user attribute.  <a href="#a52a956b9b93fcd65d7addd2c66345983"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a982f117c47864e0fe3cc3bd61032fe4b">setToUser</a> (QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that sets the to user attribute.  <a href="#a982f117c47864e0fe3cc3bd61032fe4b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a0cc2ee4af6d8408d3e1d2382bc8ee0de">getToUser</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that gets the to user information.  <a href="#a0cc2ee4af6d8408d3e1d2382bc8ee0de"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a05f81085133d6bcf825ee466512e25a7">getFromUser</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that gets the from user information.  <a href="#a05f81085133d6bcf825ee466512e25a7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#abc9d08c2a56665988fa5003d91ebad16">getOsType</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that gets the operating system information from the user.  <a href="#abc9d08c2a56665988fa5003d91ebad16"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a782ec79ac1f496c74958d7cab7d3aa1b">receiveMessage</a> (QString, QString, QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that receives the message.  <a href="#a782ec79ac1f496c74958d7cab7d3aa1b"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-slots"></a>
Private Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad2ff9f9d1648cf0a724caa09c4750bae"></a><!-- doxytag: member="chatWindow::on_sendButton_clicked" ref="ad2ff9f9d1648cf0a724caa09c4750bae" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#ad2ff9f9d1648cf0a724caa09c4750bae">on_sendButton_clicked</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot that determines if the user has clicked the send button. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a3c83a26de5daf6899a91769b13d945a6">OutPutChat</a> (QString, QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that saves chat conversations to a text file.  <a href="#a3c83a26de5daf6899a91769b13d945a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ed0c88d7631ed091ca17598882f66d5"></a><!-- doxytag: member="chatWindow::eventFilter" ref="a4ed0c88d7631ed091ca17598882f66d5" args="(QObject *ob, QEvent *e)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>eventFilter</b> (QObject *ob, QEvent *e)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a649ea102823f52c2d861b610d9f0d3b2"></a><!-- doxytag: member="chatWindow::ui" ref="a649ea102823f52c2d861b610d9f0d3b2" args="" -->
Ui::chatWindow *&#160;</td><td class="memItemRight" valign="bottom"><b>ui</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abec29f9b70797c7f2d548e0507b4379c"></a><!-- doxytag: member="chatWindow::toUser" ref="abec29f9b70797c7f2d548e0507b4379c" args="" -->
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#abec29f9b70797c7f2d548e0507b4379c">toUser</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">toUser variable <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8241d50ed9469212e8952044fce389d4"></a><!-- doxytag: member="chatWindow::fromUser" ref="a8241d50ed9469212e8952044fce389d4" args="" -->
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchat_window.html#a8241d50ed9469212e8952044fce389d4">fromUser</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">fromUser variable <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="classchat_window.html" title="The chatWindow helper methods.">chatWindow</a> helper methods. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a05f81085133d6bcf825ee466512e25a7"></a><!-- doxytag: member="chatWindow::getFromUser" ref="a05f81085133d6bcf825ee466512e25a7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString chatWindow::getFromUser </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that gets the from user information. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The to username </dd></dl>

</div>
</div>
<a class="anchor" id="abc9d08c2a56665988fa5003d91ebad16"></a><!-- doxytag: member="chatWindow::getOsType" ref="abc9d08c2a56665988fa5003d91ebad16" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString chatWindow::getOsType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that gets the operating system information from the user. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Operating System type </dd></dl>

</div>
</div>
<a class="anchor" id="a0cc2ee4af6d8408d3e1d2382bc8ee0de"></a><!-- doxytag: member="chatWindow::getToUser" ref="a0cc2ee4af6d8408d3e1d2382bc8ee0de" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString chatWindow::getToUser </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that gets the to user information. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ToUser</td><td>The username receiving the message </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The to user of the message </dd></dl>

</div>
</div>
<a class="anchor" id="a1ed506729bd803adf6771814dd2cca64"></a><!-- doxytag: member="chatWindow::messageSent" ref="a1ed506729bd803adf6771814dd2cca64" args="(QString, QString, QString, QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void chatWindow::messageSent </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal that sends the message. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fromUser</td><td>The from user of the message </td></tr>
    <tr><td class="paramname">toUser</td><td>The to user of the message </td></tr>
    <tr><td class="paramname">message</td><td>The chat message </td></tr>
    <tr><td class="paramname">time</td><td>The time of the message being sent </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3c83a26de5daf6899a91769b13d945a6"></a><!-- doxytag: member="chatWindow::OutPutChat" ref="a3c83a26de5daf6899a91769b13d945a6" args="(QString, QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void chatWindow::OutPutChat </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>message</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that saves chat conversations to a text file. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The name of the file to save </td></tr>
    <tr><td class="paramname">message</td><td>The conversation message </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a782ec79ac1f496c74958d7cab7d3aa1b"></a><!-- doxytag: member="chatWindow::receiveMessage" ref="a782ec79ac1f496c74958d7cab7d3aa1b" args="(QString, QString, QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void chatWindow::receiveMessage </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>fromUser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>time</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that receives the message. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>The chat message </td></tr>
    <tr><td class="paramname">fromUser</td><td>The from user </td></tr>
    <tr><td class="paramname">time</td><td>The time of the message </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a52a956b9b93fcd65d7addd2c66345983"></a><!-- doxytag: member="chatWindow::setfromUser" ref="a52a956b9b93fcd65d7addd2c66345983" args="(QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void chatWindow::setfromUser </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>fromUser</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that sets the from user attribute. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">username</td><td>The username of the from user </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a982f117c47864e0fe3cc3bd61032fe4b"></a><!-- doxytag: member="chatWindow::setToUser" ref="a982f117c47864e0fe3cc3bd61032fe4b" args="(QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void chatWindow::setToUser </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>toUser</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that sets the to user attribute. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">username</td><td>The username of the to user </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/Users/plamontagna/Documents/spa-cs340project/im_client_v2/<a class="el" href="chatwindow_8h_source.html">chatwindow.h</a></li>
<li>/Users/plamontagna/Documents/spa-cs340project/im_client_v2/<a class="el" href="chatwindow_8cpp.html">chatwindow.cpp</a></li>
<li>/Users/plamontagna/Documents/spa-cs340project/im_client_v2/chatwindow.cpp.BACKUP.2896.cpp</li>
<li>/Users/plamontagna/Documents/spa-cs340project/im_client_v2/chatwindow.cpp.BASE.2896.cpp</li>
<li>/Users/plamontagna/Documents/spa-cs340project/im_client_v2/chatwindow.cpp.LOCAL.2896.cpp</li>
<li>/Users/plamontagna/Documents/spa-cs340project/im_client_v2/chatwindow.cpp.REMOTE.2896.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 23:53:09 for N3RD CH4T by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
